<template>
  <!-- vue2模板 -->
    <div>
        <Tree :items="treeData" />
    </div>
</template>

<script>
import Tree from './Tree'
export default {
    name: 'Test',
    components:{Tree},
    data() {
        return {
          title: "",
          treeData: [{
            name: "明星",
            child: [{
              name:'迪丽热巴'
            }]
          }, {
            name: '网红',
            child: [{
              name:'思思酱'
            }]
          }]
        };
    },
    props:{

    },
    mounted() {

    },

    methods: {

    },
};
</script>

<style scoped>

</style>
